package net.ningbo;

/**
 * @Author 宁铂
 * @Date 2021/7/6 17:35
 * @Version 1.0
 */
public class Precedence {
    public static void main(String[] args) {
       int x = 1, y= 2, z = 3;
       int a = x + y - 2/2 + z;
       int b = x + (y - 2)/(2 + z);
        System.out.println("a = "+a+" b = "+b);

        //答案：a = 5 , b = 1
    }
}
